package com.university.vo;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Studentcomment entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "studentcomment", catalog = "university")

public class Studentcomment implements java.io.Serializable {

	// Fields

	private Integer studentCommentId;
	private Company company;
	private Student student;
	private String studentCommentText;
	private Timestamp studentCommentTime;
	private Integer studentCommentGrade;
	private Boolean studentCommentEnable;

	// Constructors

	/** default constructor */
	public Studentcomment() {
	}

	@Override
	public String toString() {
		return "Studentcomment [studentCommentId=" + studentCommentId + ", company=" + company + ", student=" + student
				+ ", studentCommentText=" + studentCommentText + ", studentCommentTime=" + studentCommentTime
				+ ", studentCommentGrade=" + studentCommentGrade + ", studentCommentEnable=" + studentCommentEnable
				+ "]";
	}

	/** full constructor */
	public Studentcomment(Company company, Student student, String studentCommentText, Timestamp studentCommentTime,
			Integer studentCommentGrade, Boolean studentCommentEnable) {
		this.company = company;
		this.student = student;
		this.studentCommentText = studentCommentText;
		this.studentCommentTime = studentCommentTime;
		this.studentCommentGrade = studentCommentGrade;
		this.studentCommentEnable = studentCommentEnable;
	}

	// Property accessors
	@Id
	@GeneratedValue

	@Column(name = "studentComment_id", unique = true, nullable = false)

	public Integer getStudentCommentId() {
		return this.studentCommentId;
	}

	public void setStudentCommentId(Integer studentCommentId) {
		this.studentCommentId = studentCommentId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "studentComment_companyId")

	public Company getCompany() {
		return this.company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "studentComment_studentId")

	public Student getStudent() {
		return this.student;
	}

	public void setStudent(Student student) {
		this.student = student;
	}

	@Column(name = "studentComment_text", length = 2000)

	public String getStudentCommentText() {
		return this.studentCommentText;
	}

	public void setStudentCommentText(String studentCommentText) {
		this.studentCommentText = studentCommentText;
	}

	@Column(name = "studentComment_time", length = 19)

	public Timestamp getStudentCommentTime() {
		return this.studentCommentTime;
	}

	public void setStudentCommentTime(Timestamp studentCommentTime) {
		this.studentCommentTime = studentCommentTime;
	}

	@Column(name = "studentComment_grade")

	public Integer getStudentCommentGrade() {
		return this.studentCommentGrade;
	}

	public void setStudentCommentGrade(Integer studentCommentGrade) {
		this.studentCommentGrade = studentCommentGrade;
	}

	@Column(name = "studentComment_enable", insertable = false)

	public Boolean getStudentCommentEnable() {
		return this.studentCommentEnable;
	}

	public void setStudentCommentEnable(Boolean studentCommentEnable) {
		this.studentCommentEnable = studentCommentEnable;
	}

}